package com.tckdq.tcc.feign;

import com.tckdq.tcc.domain.Login;
import com.tckdq.tcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-uaa",fallbackFactory = FeignFallbackFactory.class)
public interface Feign {
    @RequestMapping(value="/login/register",method= RequestMethod.POST)
    JsonResult saveRegister(@RequestBody Login login);

}
